﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/UserMaster.Master" AutoEventWireup="true" CodeBehind="BookDetail.aspx.cs" Inherits="BookManageSys.User.BookDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="auto-style1">
        <tr>
            <td>
                <table class="auto-style4">
                    <tr>
                        <td class="auto-style3" colspan="4">
                            <asp:Image ID="Image1" runat="server" Height="200px" Width="200px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">商品名：</td>
                        <td colspan="2">
                            <asp:Label ID="LblProductName" runat="server" Text='<%# Eval("productname") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">价格：</td>
                        <td colspan="2">
                            <asp:Label ID="LblPrice" runat="server" Text='<%# Eval("price") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">库存量：<br /> 
                            <asp:Label ID="LblStockQuantity" runat="server" Text='<%# Eval("stockquantity") %>'></asp:Label>
                        </td>
                        <td colspan="2">销售量：<br /> 
                            <asp:Label ID="LblSalesQuantity" runat="server" Text='<%# Eval("salesquantity") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">描述：<asp:Label ID="LblDescription" runat="server" Text='<%# Eval("description") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="auto-style2">购买数量：</td>
                        <td colspan="2" class="auto-style2">
                            <asp:TextBox ID="TxtBuyNum" runat="server">1</asp:TextBox>
                            <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TxtBuyNum" ErrorMessage="*" MinimumValue="1" MaximumValue="10000" Type="Integer"></asp:RangeValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="BtnCart" runat="server" Text="加入购物车" OnClick="BtnCart_Click" />
                        </td>
                        <td colspan="2">
                            <asp:Button ID="BtnBuy" runat="server" Text="购买" OnClick="BtnBuy_Click" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>                  
            </td>
            <td>
                <asp:Panel ID="Panel1" runat="server" Height="172px" Width="517px">
                    请确认收货信息：

                    <table class="auto-style1">
                        <tr>
                            <td>姓名：</td>
                            <td>
                                <asp:TextBox ID="TxtUserName" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>地址：</td>
                            <td>
                                <asp:TextBox ID="TxtAddress" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>电话：</td>
                            <td>
                                <asp:TextBox ID="TxtTelephone" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="BtnConfirm0" runat="server" Text="购买" OnClick="BtnConfirm_Click" />
                            </td>
                            <td>
                                <asp:Button ID="BtnCancel" runat="server" OnClick="BtnCancel_Click" Text="取消" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
